package com.wc.alorithm_blue_bridge._前缀和与差分.弹珠堆放;

/**
 * @Author congge
 * @Date 2024/5/22 23:47
 * @description https://www.lanqiao.cn/problems/17142/learning/?problem_list_id=32&page=1
 */
public class Main {
    static int N = 20000;
    static int[] s = new int[N];

    public static void main(String[] args) {
        for (int i = 1; ; i++) {
            s[i] = i * (i + 1) / 2;
            s[i] += s[i - 1];
            if (s[i] > 20230610){
                System.out.println(i - 1);
                break;
            }
        }
    }
}
